<?php
if ($this->code == 404) :
?>
<div class="page-not-found">
  <h2><?php echo $this->__('Page not found') ?></h2>
</div>
<?php else:?>
<div class="error-detail">
  <h2><?php echo $this->message ?></h2>

  <h3>Exception information:</h3>
  <p>
      <b>Message:</b> <?php echo $this->exception->getMessage() ?>
  </p>

  <h3>Stack trace:</h3>
  <pre>
  	<?php echo $this->exception->getTraceAsString() ?>
  </pre>
</div>
<?php endif;?>